<!DOCTYPE html>
<!--suppress ALL-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div th:replace="header::header"></div>
    <h1>HTML</h1>
    <label th:text="${price}"></label>
    <div th:text="${str}"></div>
    <p th:text="${employee.lastName}"></p>

    <p class="type" th:inline="text">姓名：[[${employee.lastName}]]</p>

    <table style="width: 600px" border="1" cellspacing="0">
        <caption>用户列表</caption>
        <thead>
            <tr>
                <th>名字</th>
                <th>邮箱</th>
                <th>性别</th>
                <th>年龄</th>
            </tr>
        </thead>
        <tbody>
            <tr th:each="e:${list}">
                <td th:text="${e.lastName}"></td>
                <td th:text="${e.email}"></td>
                <td th:text="${e.gender}==1?'男':'女'"></td>
                <td th:text="${e.age}"></td>
                <td th:if="${e.age}>30">年龄有点大</td>
                <td th:unless="${e.age}<30">年龄有点大</td>
            </tr>
        </tbody>
    </table>
        <div th:replace="footer::footer"></div>
</body>
    <style type="text/css">
        .type{
            color: [[${color}]];
        }
    </style>
</html>